using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for DataAccessHelper
/// </summary>
namespace SMS.OnLine.DataAccessLayer
{
    public class DataAccessHelper
    {
        public static SMSDataAccess GetSMSDataAccess()
        {
            string dataAccessStringType = ConfigurationManager.AppSettings["SMS_OnLine_DataAccessLayerType"];
            Type dataAccessType = Type.GetType(dataAccessStringType);
            SMSDataAccess dc = (SMSDataAccess)Activator.CreateInstance(dataAccessType);
            return (dc);
        }

        public static DataMartDataAccess GetDataMartDataAccess()
        {
            string dataAccessStringType = ConfigurationManager.AppSettings["DataMart_DataAccessLayerType"];
            Type dataAccessType = Type.GetType(dataAccessStringType);
            DataMartDataAccess dc = (DataMartDataAccess)Activator.CreateInstance(dataAccessType);
            return (dc);
        }

    }
}